﻿@{
    var lan = Request["lan"];

    if (lan != "en")
    {
        lan = "";
    }

    var catalogId = new Guid("bd114123-afad-44a0-8af3-bd6de2a6eb1f");
    var catalogKeyCompany = "lxwm";
    var catalogKeyyqlj = "yqlj";

    if (lan == "en")
    {
        catalogId = new Guid("c7298d3a-5659-4ee0-86e6-fb4ca28e4c7d");
        catalogKeyCompany = "lxwm_en";
        catalogKeyyqlj = "yqlj_en";
    }


    var company = IoCHeler.Resolve<IArticleAppService>().GetArticles(new ArticleCondition() { CatalogKey = catalogKeyCompany }, "").FirstOrDefault() ?? new Article();
    var menu = IoCHeler.Resolve<ICatalogAppService>().GetHierarchicalDtos(catalogId, CatalogType.Article).ToList();
    var yqljList = IoCHeler.Resolve<IArticleAppService>().GetArticles(new ArticleCondition() { CatalogKey = catalogKeyyqlj }, "").ToList();
}

<!DOCTYPE html>
<html lang="zh">
<head>
    <title>@(ViewBag.Title)</title>
    <meta name="keywords" content="@ViewBag.Keyword" />
    <meta name="description" content="@ViewBag.Description" />
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
    <link href="/App_Content/css/jquery.mCustomScrollbar.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/App_Content/css/css.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/App_Content/css/common.css" type="text/css" rel="stylesheet">
    <link href="/App_Content/css/fr.css" rel="stylesheet" type="text/css" media="all" />
    <script src='/App_Content/js/fontRatio.js'></script>
    <script src="~/App_Content/lightbox/js/lightbox-plus-jquery.min.js"></script>
    <link href="~/App_Content/lightbox/css/lightbox.min.css" rel="stylesheet" />
    @RenderSection("Head", false)

</head>
<body>

    <div class="top-bar noborder">
        <div class="logo"><img src="/App_Content/css/images/logo.png" /></div>
    </div>
    <!-- header -->
    <div class="inner-top" style="top: 0px;">
        <a href="javascript:void(0);" class="menu-btn"></a>
        <a href="#" class="language-btn"></a>
    </div>

    <div class="menu" style="background-color:rgba(0,0,0,0.9);">

        <a href="javascript:void(0);" class="close" onclick="$('.menu').hide(); $('body').removeClass('ovh');">
            <img src="/App_Content/css/images/close-menu.png" width="30" height="30" />
        </a>
        <div class="menu-c mlAuto">
            <div align="center" class="mlogo" style="position:static;">
                <img src="@company.TitleImageUrl" />
            </div>
            <div class="menu-inner">
                <div class="l">
                    @foreach (var item in menu)
                    {

                        if (item.childs != null && item.key != "sy")
                        {
                            <a data-controller="home" href="@JsonHelper.GetString(item.childs[0].path,"Target")" class="nav-hasChild" onmouseover="showChild(this)" title="@item.text">
                                <div class="@lan">@item.text</div>
                                <div class="childs" style="display:none;">
                                    @foreach (var child in item.childs)
                                    {
                                        <a href="@JsonHelper.GetString(child.path,"Target")" title="@child.text">@child.text </a>
                                    }
                                </div>
                            </a>
                        }
                        else
                        {
                            <a data-controller="home" href="@JsonHelper.GetString(item.path,"Target")" onmouseover="showChild(this)" title="@item.text">
                                <div class="@lan">@item.text</div>
                                <div class="childs" style="display:none;">

                                    <a href="@JsonHelper.GetString(item.path,"Target")" title="@item.text">@item.text </a>

                                </div>
                            </a>

                        }

                    }

                </div>
                <div class="r">
                    <form method="GET" id="search-form" action="/Product/List/">
                        <!--<div class="search">
                            <div class="input">
                                <div class="ic">
                                    <input type="text" name="key" value="" />
                                </div>
                            </div>
                            <div class="btn">
                                <a href="javascript:void(0);" onclick="$('#search-form').submit(); return false;"></a>
                            </div>
                        </div>-->
                        <div class="height30"></div>
                        <div class="menu-categorys">
                            @*<a href="新闻资讯.html" title="集团介绍">集团介绍 </a>
                                <a href="作品展示.html" title="组织架构">组织架构 </a>
                                <a href="#" title="荣誉证书">荣誉证书 </a>
                                <a href="#" title="领导关怀">领导关怀 </a>
                                <a href="#" title="发展历程">发展历程 </a>
                                <a href="#" title="集团风采">集团风采 </a>*@
                        </div>
                    </form>
                </div>
                <div class="height1"></div>
            </div>
        </div>
    </div>



    <div class="bodyBox bg_white main mlAuto">



        <!-- top -->
        <div class="top">
        </div>

        @RenderSection("BodyDiv", false)


        <div class="footer">
            <div class="f_box">
                <h3>
                    @foreach (var item in menu)
                    {
                        <a href="@JsonHelper.GetString(item.path,"Target")">@item.text</a>
                    }
                    <div class="clear"></div>
                </h3>
                <div class="clear"></div>
                <div class="b1">
                    <h4>@company.Title</h4>
                    <p>地址：@company.SubTitle</p>
                    <p>电话：@company.Tag</p>
                    <p>传真：@company.Origin</p>
                    <p>Email：@company.Author</p>
                </div>
                <div class="b2">
                    <img src="/App_Content/css/images/ewm.jpg" />
                </div>
                <div class="b3">
                    <h4>友情链接</h4>
                    @foreach (var item in yqljList)
                    {
                        <a href="@item.TransferUrl">@item.Title</a>
                    }
                </div>
                <div class="clear"></div>
            </div>
            <div class="b_box">
                <div class="bottom">
                    <i class="backTop">返回顶部</i>
                    <p><em>@company.ExtField01</em><em>@company.ExtField02</em></p>
                </div>
                <div class="clear"></div>
            </div>
        </div>
    </div>



    <script src='/App_Content/js/jquery.min.js'></script>
    <script type="text/javascript" src="/App_Content/js/jquery-migrate-1.3.0.min.js"></script>
    <script type="text/javascript" src="/App_Content/js/comm.js"></script>
    <script src="/App_Content/js/fr.js"></script>
    <script src='/App_Content/js/html5.js'></script>
    <script src='/App_Content/js/css3-mediaqueries.js'></script>


    @RenderSection("Foot", false)

    <script>

        window.showChild = function (t) {
            var _h = $(t).next().html();
            $('.menu-categorys').html(_h);
            $(t).addClass('on').siblings().removeClass('on');
        };
        $(function () {
            $('.nav-hasChild').eq(0).mouseover();
        })
    </script>
</body>
</html>
@*<script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?aaca281643181888c12846992f0c6295";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
    </script>*@
